/*============================================================
File name: ipark.h

Originator: XXW THU

Description: define the functions related with ipark

Reference: none

============================================================
History:
------------------------------------------------------------
2017-07-19 Version 1.0
------------------------------------------------------------*/


#ifndef ICLARKE_H
#define ICLARKE_H


//-----------------------------------------------------------------------------
//  Define the structure of the POSSPEED Object
//-----------------------------------------------------------------------------
typedef struct {  float  Alpha;         // Output: stationary d-axis stator variable
                  float  Beta;      // Output: stationary q-axis stator variable
                  float  As;       // Input: rotating angle (pu)
                  float  Bs;
                  float  Cs;            // Input: rotating d-axis stator variable
                  void  (*calc)();  // Pointer to calculation function
                 } ICLARKE;

//-----------------------------------------------------------------------------
// Define a POSSPEED_handle
//-----------------------------------------------------------------------------
typedef ICLARKE *ICLARKE_handle;


//-----------------------------------------------------------------------------
// Default initializer for the POSSPEED Object.
//-----------------------------------------------------------------------------
#define ICLARKE_DEFAULTS {  0, \
                          0, \
                          0, \
                          0, \
                          0, \
                          (void (*)(Uint32))iclarke_calc }
//-----------------------------------------------------------------------------
//  Prototypes for the functions in posspeed.c
//-----------------------------------------------------------------------------
void iclarke_calc(ICLARKE_handle);




#endif

//==============================================================
//End of file.
//==============================================================



